package beans;
public class WebServiceBean {
    //状态
    public int result;
    //返回的内容
    public Object data;

    /**
     * 快速返回实例
     * @param status
     * @return
     */
    public static WebServiceBean getInstance(int status){
        WebServiceBean webServiceBean = new WebServiceBean();
        webServiceBean.result=status;
        return webServiceBean;
    }

    /**
     * 成功实例
     * @return
     */
    public static WebServiceBean getSuccessInstance(){
        WebServiceBean webServiceBean = new WebServiceBean();
        webServiceBean.result= 1;
        return webServiceBean;
    }

    /**
     * 失败实例
     * @return
     */
    public static WebServiceBean getFailInstance(){
        WebServiceBean webServiceBean = new WebServiceBean();
        webServiceBean.result= 0;
        return webServiceBean;
    }
}